$(function () {
    $("#btn1").on("click",function () {
        // $("#p1").append("this is my first page");
        $("#p1").prepend("this is my first page");
    });
    $("#btn2").on("click",function () {
        // $("#p2").before("this is my first page");       //换行添加
        $("#p2").after("this is my first page");
    });
    $("#btn3").click(appendText);
});
function appendText() {
    var text1 = "<p>iwen</p>";
    var text2 = $("<p></p>").text("ime");
    var text3 = document.createElement("p");
    text3.innerHTML = "isaa";
    $("body").after(text1,text2,text3);
}